package cn.wk.services.impl;

import cn.wk.dao.ClassDao;
import cn.wk.dao.impl.ClassesDaolmpl;
import cn.wk.entity.Classes;
import cn.wk.services.ClassesServices;
import cn.wk.util.JDBCUtil;
import org.springframework.jdbc.core.BeanPropertyRowMapper;
import org.springframework.jdbc.core.JdbcTemplate;

import java.util.List;

public class Classesserviceslmpl implements ClassesServices {
        private ClassDao dao=new ClassesDaolmpl();
    @Override
    public List<Classes> getAllClasses(Object...obj) {
        return dao.getAllClasses(obj);
    }
    @Override
    public int  CountSize(){
        return dao.CountSize();
    }

    @Override
    public List<Classes> getByClassessNameandId() {
        return dao.getByClassessNameandId();
    }

    @Override
    public int AddAllClasses(String sql){
        return dao.AddAllClasses(sql);
    }

    @Override
    public int AddClasses(Object... obj) {
        return dao.AddClasses(obj);
    }

    @Override
    public int MidffClasses(Object... obj) {
        return dao.MidffClasses(obj);
    }

    @Override
    public int DelClasses(Object... obj) {
       return 0;
    }



    @Override
    public Classes findClassesById(int tid) {
        return dao.findClassesById(tid);
    }


}
